<!DOCTYPE html>
<html>
<head>
<title>index.html</title>
<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="this is my page">
<meta name="content-type" content="text/html; charset=UTF-8">

<link rel="stylesheet" type="text/css"
	href="./js/easyui1.3.2/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="./js/easyui1.3.2/themes/icon.css">
<script type="text/javascript"
	src="./js/easyui1.3.2/jquery-1.8.0.min.js"></script>
<script type="text/javascript"
	src="./js/easyui1.3.2/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="./js/easyui1.3.2/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="./js/My97DatePicker/WdatePicker.js"></script>
</head>
<body onload="javascript:doPost()">
	This is my HTML page.
	<br>
</body>

<script type="text/javascript">
	//修改个人信息
	function doPost() {
		alert("OK");
		$.ajax({
			type : "POST",
			url : "http://10.10.0.53:7500/uplus/common/suggestion/create",
			contentType : "application/json;charset=UTF-8",
			headers : {
				"timestamp" : "20160111141341",
				"sign" : "f4e1282e9ae0592a65b2114ae5eafb6a",
				"appId" : "MB-HEHKQGJB-0002",
				"appKey" : "89f04f17d2830ebd41763c805dee53da",
				"accessToken" : "TGT1DBD8OF9W209J2SYAK0TVJZHW70",
				"appVersion" : "V0.5.01_0228",
				"clientId" : "2014022801010",
				"appName" : "upluszhsh"
			},
			dataType : "json",
			data : JSON.stringify({
				"suggestion" : "liujiawei刘佳伟回来了"
			}),
			success : function(ret, status, jqXHR) {
				alert(1);
				console.log(JSON.stringify(ret));
				alert(JSON.stringify(ret));
				if ("00000" == ret.retCode) {

					console.log("getAllResponseHeaders="
							+ jqXHR.getAllResponseHeaders());
					//					qrcodeLogin.uuid = ret.data.uuid;
					//					console.log("@@@uuid=" + ret.data.uuid);
					//					var src = "data:image/" + ret.data.format + ";base64," + ret.data.imgStr;
					//					$("#a").attr("src", src);
					//
					//					//长轮询
					//					qrcodeLogin._poll(qrcodeLogin.uuid);
				} else {
					console.log("erro=" + ret.retCode + "|" + ret.retInfo);
				}

			},
			error : function(jqXHR, textStatus, errorThrown) {
				alert(2);
				//404:error
				console.log("===========textStatus=" + textStatus);
				console.log("=======readyState=" + jqXHR.readyState);

				console.log("=======status=" + jqXHR.status);

				console.log("=======responseText=" + jqXHR.responseText);
				console.log("=======errorThrown=" + errorThrown);
				//				0 － （未初始化）还没有调用send()方法
				//1 － （载入）已调用send()方法，正在发送请求
				//2 － （载入完成）send()方法执行完成，已经接收到全部响应内容
				//3 － （交互）正在解析响应内容
				//4 － （完成）响应内容解析完成，可以在客户端调用了

			}
		});

	}
</script>
</html>
